package com.huihuiyun.huihuiyun.server.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 广告
 */
@Entity
@Table(name = "hhy_advertisement")
@Data
public class HhyAdvertisement {
    /* status 0 禁用 1 正常 */
    public static final int status0Disable = 0;

    public static final int status1Disable = 1;

    /* id */
    @Id
    public String id;

    /* 图片 */
    public String image;

    /* 状态 0 禁用 1 正常 */
    public int status = HhyAdvertisement.status0Disable;

    /* 排序顺序 */
    public int sortOrder;

    /* 区域编码 */
    public String areaCode;

    /* 内容 */
    public String content;
}
